<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/extremecomponents.tld" prefix="ec" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'topic_list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" type="text/css" href="images/eXtremeComponents/extremecomponents.css" />
  </head>
  
  <body>
   <ec:table items="topics"
				action="${pageContext.request.contextPath}/topicAction!getTopicList.action"
				imagePath="${pageContext.request.contextPath}/images/eXtremeComponents/table/*.gif"
				title="帖子列表" width="100%" rowsDisplayed="10" var="topic" >
				<ec:row highlightRow="true">
			
					<ec:column property="title" title="标题" sortable="true">
					</ec:column>
					<ec:column property="user_id" title="作者" sortable="true" filterable="false">
					${userCache[topic.user_id].user_name}
					</ec:column>
					<ec:column property="posttime"  title="发帖时间"  sortable="true">
					</ec:column>
					<ec:column property="board_id" title="版块"  sortable="true" filterable="false">
					${sectionCache[topic.board_id].section_name}
					</ec:column>
					<ec:column property="clic_num" title="点击量" width="3" filterable="false" sortable="true">
					</ec:column>
					<ec:column property="reply_num" title="回复量"  width="3px" filterable="false" sortable="true">
					</ec:column>
					<ec:column property="status" title="状态" sortable="true" filterable="false">
					</ec:column>
					<ec:column property="null2" title="   操作        "  sortable="false"
						filterable="false" viewsDenied="xls" >
						[<a onMouseOver="this.style.cursor='hand'"
							href="topicAction!readTopic.action?id=${topic.id}">查看</a>]
						[<a onMouseOver="this.style.cursor='hand'"
							href="topicAction!delTopic.action?topic.id=${topic.id}">删除</a>]
					</ec:column>
				</ec:row>
		</ec:table>
  </body>
</html>
